package com.teamin.config;

/**
 * 消息类型
 * 
 * @author 31484
 *
 */
public enum MessageType {

	TASK_MESSAGE(1, "任务消息"), 
	SYSTEM_MESSAGE(2, "系统消息");

	private final short type;

	private final String desc;

	MessageType(int value, String message) {
		this.type = (short) value;
		this.desc = message;
	}
	/**
	 * Return the integer value of this status code.
	 */
	public short value() {
		return this.type;
	}

	/**
	 * Return the reason phrase of this status code.
	 */
	public String getMessage() {
		return this.desc;
	}
}
